package com.smbms.service.systemservice.userService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smbms.dao.system.user.UserMapper;
import com.smbms.pojo.system.Og_Department;
import com.smbms.pojo.system.Og_Role;
import com.smbms.pojo.system.Og_User;


@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public List<Og_User> userList(Og_User user) {
		// TODO Auto-generated method stub
		return userMapper.userList(user);
	}

	@Override
	public List<Og_Role> getRoleList() {
		// TODO Auto-generated method stub
		return userMapper.getRoleList();
	}

	@Override
	public List<Og_Department> getDepartmentList() {
		// TODO Auto-generated method stub
		return userMapper.getDepartmentList();
	}

	@Override
	public int delUser(Integer id) {
		// TODO Auto-generated method stub
		return userMapper.delUser(id);
	}

	@Override
	public Og_User showUser(Integer id) {
		// TODO Auto-generated method stub
		return userMapper.showUser(id);
	}

	@Override
	public int count(Og_User user) {
		// TODO Auto-generated method stub
		return userMapper.count(user);
	}

	@Override
	public int addCount(Og_User user) {
		// TODO Auto-generated method stub
		return userMapper.addCount(user);
	}


}
